<template>
  <div>user</div>
  <button @click="toLink">跳转 index</button>
</template>

<script setup lang="ts">
// definePageMeta({
//   middleware: ["user"]
// })

const route = useRoute()
const toLink = () => {
  console.log("route", route);
}

</script>
<style lang="scss" scoped></style>